libtest: Enable web server logs
authorColin Walters <walters@verbum.org>
Fri, 13 Jan 2017 17:29:17 +0000 (12:29 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 19 Jan 2017 10:47:15 +0000 (10:47 +0000)
Now that we're daemonizing, it's useful to have the logs.  I
wanted this while debugging cookies.

Closes: #651
Approved by: giuseppe

tests/libtest.sh

index db57128ada6d2dcfcca2dc159519ffd34f0dae13..927b8b1abf3a17a3d5bdc33153684d4b9c108764 100755 (executable)
@@ -262,7 +262,7 @@ setup_fake_remote_repo1() {
     mkdir ${test_tmpdir}/httpd
     cd httpd
     ln -s ${test_tmpdir}/ostree-srv ostree
-    ${OSTREE_HTTPD} --autoexit --daemonize -p ${test_tmpdir}/httpd-port $args
+    ${OSTREE_HTTPD} --autoexit --log-file $(pwd)/httpd.log --daemonize -p ${test_tmpdir}/httpd-port $args
     port=$(cat ${test_tmpdir}/httpd-port)
     echo "http://127.0.0.1:${port}" > ${test_tmpdir}/httpd-address
     cd ${oldpwd}